using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
using OpenIddict.EntityFrameworkCore.Models;

namespace Cordyceps.Micro.AuthServer.Dimain.Models;

/// <summary>
///     内部使用令牌
/// </summary>
[Comment("内部使用令牌")]
public class CordycepsOpenIddictTokens : OpenIddictEntityFrameworkCoreToken<Guid, CordycepsOpenIddictApplications,
    CordycepsOpenIddictAuthorizations>
{
    // 可扩展字段
    [MaxLength(2000)]
    [Comment("可扩展字段")]
    [Description("可扩展字段")]
    [DisplayName("可扩展字段")]
    public string? CustomProperty { get; set; }
}